package com.onesports.intelligent.k12.polarlight.domain.dto.course;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.*;

/**
 * @author FPH
 * @since 2022年7月9日15:59:44
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@ApiModel(value = "课程分阶")
public class CourseSubLevelSaveOrUpdateDTO {

    @ApiModelProperty(value = "分阶ID")
    private String id;

    @ApiModelProperty(value = "分类id")
    @NotBlank(message = "分类ID不可为空")
    private String classifyId;

    @ApiModelProperty(value = "分阶名称")
    @Length(max = 50)
    @NotBlank(message = "分阶名称不可为空")
    private String subLevelName;

    @ApiModelProperty(value = "年龄最大值")
    @Max(value = 150,message = "年龄不可超过150岁")
    @Min(value = 0,message = "年龄不可低于0岁")
    private Integer maxAge;

    @ApiModelProperty(value = "年龄最小值")
    @Max(value = 150,message = "年龄不可超过150岁")
    @Min(value = 0,message = "年龄不可低于0岁")
    private Integer minAge;
}
